package com.kokomi.mapper;

import com.kokomi.pojo.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kokomi.pojo.VO.BookVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author klioe
* @description 针对表【t_book】的数据库操作Mapper
* @createDate 2025-03-27 10:28:15
* @Entity com.kokomi.pojo.Book
*/
public interface BookMapper extends BaseMapper<Book> {


    @Select("select name,author,price,img_src,buy_count from t_book where type_id = #{Tid}")
    public List<BookVO> getBookByTyId(@Param("Tid") Integer Tid);


}




